package tw.com.softleader.fire.setting.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tw.com.softleader.fire.common.dao.GenericDao;
import tw.com.softleader.fire.common.service.GenericService;
import tw.com.softleader.fire.setting.dao.InsuredItemDao;
import tw.com.softleader.fire.setting.entity.InsuredItemEntity;

/**
 * 
 * @author Yuanchieh(Ebi)
 *
 */

@Service
public class InsuredItemService extends GenericService<InsuredItemEntity> {

	@Autowired
	private InsuredItemDao dao;

	@Override
	protected GenericDao<InsuredItemEntity> getDao() {
		
		return dao;
	}
	
	public List<InsuredItemEntity> getByCode(String code) {
			
		return dao.findByCode(code);
	}
}
